const Sequelize = require('sequelize');
const sequelize = require('../config/sequelizeBase');

const ArticleReviewModel = sequelize.define('articlereview',{
	id:{
		type:Sequelize.BIGINT,
		primaryKey:true,
		allowNull:false,
		autoIncrement:true
	},
	userid:{
		type:Sequelize.STRING(500),
		allowNull:false
	},
	articleid:{
		type:Sequelize.STRING(500),
		allowNull:false
	},
	articledetail:{
		type:Sequelize.STRING(5000),
		allowNull:true
	},
	

	createtime:{
		type:Sequelize.DATE,
		allowNull:false
	},
},{
	timestamps:false,
});


// ArticleReviewModel.sync(); 
module.exports = ArticleReviewModel;